// @ts-nocheck
/**
 * @Date: 2022-03-08 12:07:13
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-03-14 11:22:13
 * @FilePath: \zhihuReal\model\topicMdl.js
 * @Description: 话题Schema
 */
const {
    Schema
} = require('../db/db')
const mongoose = require('../db/db')
const topicSchema = mongoose.Schema({
    __v: {
        type: Number,
        select: false
    },
    name: {
        type: String,
        required: true
    },
    //图片
    imgUrl: {
        type: String
    },
    //描述
    desc: {
        type: String,
        select: false
    }
}, {
    timestamps: true
})
const Topic = mongoose.model('Topic', topicSchema)
module.exports = Topic